package com.itcanteen.medical.docker.controller;


import com.itcanteen.medical.common.exception.AdException;
import com.itcanteen.medical.common.vo.CommonResponse;
import com.itcanteen.medical.docker.entity.RegistrationRecording;
import com.itcanteen.medical.docker.service.impl.RegistrationRecordingServiceImpl;
import com.itcanteen.medical.docker.unified.management.RequestParameter;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/RegistrationRecording")
public class RegistrationRecordingController {
    @Autowired
    RegistrationRecordingServiceImpl service;

    /**
     * 取消挂号
     * @param requestParameter
     * @return
     * @throws AdException
     */
    @PostMapping("/cancel")
    @ApiOperation("取消挂号")
    public RegistrationRecording cancel(@RequestBody RequestParameter requestParameter) throws AdException {
        return service.cancel(requestParameter);
    }





}
